import Mock from 'mockjs';

let item = [{
		key: "/product/all",
		method: "get",
		param: {
			
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA|1-4': [{
					"productid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					"name": "@cword(6,9)",
					'price|1-3': /[1-9]/,
					'vipInfo': '[{"typeid":["TP202341"],"name":"球速","count":10,"ts":360},{"typeid":["TP202342"],"name":"杀球","count":10,"ts":0},{"typeid":["TP202343"],"name":"打点","count":10,"ts":0},{"typeid":["TP202344"],"name":"综合测试","count":10,"ts":0},{"typeid":["TP202341","TP202341"],"name":"球速和杀球","count":10,"ts":360}]'
				}]
			});
		}
	},
	{
		key: "/product/page",
		method: "get",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"productid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"name": "@cword(6,9)",
						'price|1-3': /[1-9]/,
						'vipInfo': '[{"typeid":["TP202341"],"name":"球速","count":10,"ts":360},{"typeid":["TP202342"],"name":"杀球","count":10,"ts":0},{"typeid":["TP202343"],"name":"打点","count":10,"ts":0},{"typeid":["TP202344"],"name":"综合测试","count":10,"ts":0},{"typeid":["TP202341","TP202341"],"name":"球速和杀球","count":10,"ts":360}]'
					}]
				}
			});
		}
	},
	{
		key: "/product/info",
		method: "get",
		prarm: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					"productid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					"name": "@cword(6,9)",
					'price|1-3': /[1-9]/,
					'vipInfo': '[{"typeid":["TP202341"],"name":"球速","count":10,"ts":360},{"typeid":["TP202342"],"name":"杀球","count":10,"ts":0},{"typeid":["TP202343"],"name":"打点","count":10,"ts":0},{"typeid":["TP202344"],"name":"综合测试","count":10,"ts":0},{"typeid":["TP202341","TP202341"],"name":"球速和杀球","count":10,"ts":360}]'
				}
			})
		}
	},

	{
		key: "/product/info",
		method: "post",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/product/info",
		method: "put",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/product/info",
		method: "delete",
		param: {
			empId: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},

]
export default item;